package com.generalbackend.role.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
* ClassName: UserLoginHistory
* @Description 用户登录记录实体类
* @author tim.xie
* @date 2021-12-28 16:36
*/

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user_login_history")
public class UserLoginHistory  {
	/**
	 * 
	 */
	@JsonSerialize(using = ToStringSerializer.class)
    @TableField("id")
    private Long id;
	/**
	 * 用户id
	 */
    @TableField("user_id")
    private Long userId;
	/**
	 * 登录ip
	 */
    @TableField("login_ip")
    private String loginIp;
	/**
	 * 是否登录成功1是 0否
	 */
    @TableField("is_success")
    private Integer isSuccess;
	/**
	 * 创建时间
	 */
    @TableField("create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
	/**
	 * 更新时间
	 */
    @TableField("gmt_modified")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;


}